﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
using demo.BLL;
using demo.Common;
using demo.Entity;
using iAgileFramework.DataTransCarrier;
using Microsoft.Ajax.Utilities;

namespace WebApplication1.Areas.Manage.Controllers
{
    public class UsersController : Controller
    {
        private UserBLL bll = new UserBLL();
        // GET: Manage/User
        public ActionResult Index()
        {
            Users model = demo.BLL.Context.user;
            ViewBag.Account = model.Account;
            return View();
        }
        [HttpPost]
        public ActionResult ChangePwd(string mpass, string newpass)
        {
            return this.Json(bll.ChangePwd(mpass, newpass));
        }
    }
}